<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改供应商回款账户数据')"/>
    <th:block th:include="include :: datetimepicker-css"/>
    <th:block th:include="include :: select2-css"/>
    <th:block th:include="include :: bootstrap-select-css"/>
</head>
<style>
    input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }

</style>
<body>

<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-StockSupplierAccount-edit">
        <input id="id" name="id" type="hidden" th:value="${supplierAccount.id}"/>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">核心企业名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="COMPANY_NAME"
                       th:value="${supplierAccount.COMPANY_NAME}" disabled="disabled">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">核心企业统一社会信用代码：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="COMPANY_CODE"
                       th:value="${supplierAccount.COMPANY_CODE}" disabled="disabled">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">供应商名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="CREDIT_NAME"
                       th:value="${supplierAccount.CREDIT_NAME}" disabled="disabled">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">供应商统一社会信用代码：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="CREDIT_CODE"
                       th:value="${supplierAccount.CREDIT_CODE}" disabled="disabled">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">回款账户户名：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="BACK_ACCOUNT_NAME"
                       th:value="${supplierAccount.BACK_ACCOUNT_NAME}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">回款账号：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="BACK_ACCOUNT_NO"
                       th:value="${supplierAccount.BACK_ACCOUNT_NO}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">开户行：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="OPEN_BANK_NAME"
                       th:value="${supplierAccount.OPEN_BANK_NAME}">
            </div>
        </div>
    </form>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<th:block th:include="include :: select2-js"/>

<script type="text/javascript">
    var prefix = ctx + 'middlesignSan';

    $(function () {

    })

    function submitHandler() {
        if ($.validate.form()) {
            var data = $("#form-StockSupplierAccount-edit").serializeArray();
            $.operate.save(prefix + "/stockSupplierAccountSave", data);
            //parent.sum();
        }
    }

</script>

</body>
</html>